package demo;

import java.util.Scanner;

public class Test01 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a = sc.nextInt();
            if (a%3==0){
                System.out.println("被三整除");
            }else if (a%5==0){
                System.out.println("被5整除");
            }else if (a%7==0){
                System.out.println("被7整除");
            }

    }
}
